﻿using System.Diagnostics;

namespace 方法
{
    public class Car
    {
        public void Drive(IEngine engine)
        {
            engine.Start();
            Debug.WriteLine("Car is driving.");
        }
    }
}
